package org.smart4j.chapter1.loader;

import org.smart4j.chapter1.helper.AopHelper;
import org.smart4j.chapter1.helper.ClassHelper;
import org.smart4j.chapter1.helper.ControllerHelper;
import org.smart4j.chapter1.util.BeanHelper;
import org.smart4j.chapter1.util.ClassUtil;
import org.smart4j.chapter1.util.IocHelper;

/**
 * @ClassName:
 * @Description: 加载相应的Helper类
 * @Author: LynnZou
 * @Date: 2017/5/27
 */
public final class HelperLoader {

    public static void init(){
        Class<?>[] classList = {
                ClassHelper.class,
                BeanHelper.class,
                AopHelper.class,//要在Ioc之前
                IocHelper.class,
                ControllerHelper.class
        };

        for(Class<?> cls:classList){
            ClassUtil.loadClass(cls.getName());
        }
    }



}
